const shopDao = require('../dao/shopDao');

module.exports.insert = async function(shop){
    return await shopDao.insert(shop);
}

module.exports.find = async function(page,searchParams){
    return await shopDao.find(page,searchParams);
}

module.exports.findById = async function(id){
    return await shopDao.findById(id);
}

module.exports.delete = async function(id){
    return await shopDao.delete(id);
}

module.exports.update = async function(shop){
    return await shopDao.update(shop);
}
